<script>
	export default {
		onLaunch: function() {
			console.log('App Launch');
			// 检查登录状态，如果未登录则跳转到登录页
			uni.redirectTo({
				url: '/pages/login/login'
			});
		},
		onShow: function() {
			console.log('App Show');
		},
		onHide: function() {
			console.log('App Hide');
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	page {
		font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Segoe UI, Arial, Roboto, 'PingFang SC', 'miui', 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
	}
	
	/* 新疆传统花纹元素 */
	.xinjiang-pattern {
		background-image: radial-gradient(circle, #A8B2B9 10%, transparent 30%),
						  radial-gradient(circle, #A8B2B9 10%, transparent 30%);
		background-size: 40rpx 40rpx;
		background-position: 0 0, 20rpx 20rpx;
	}
	
	/* 边框样式 */
	.gold-border {
		border: 3rpx solid #D1C8BC;
	}
	
	/* 主背景色 - 莫兰迪淡灰蓝 */
	.main-bg {
		background-color: #E0E6E9;
	}
	
	/* 主色元素 */
	.blue-color {
		color: #8A9EA8;
	}
	
	/* 按钮样式 */
	.custom-btn {
		height: 90rpx;
		line-height: 90rpx;
		background: linear-gradient(135deg, #8A9EA8, #B6C5CD);
		color: #fff;
		font-size: 32rpx;
		border-radius: 45rpx;
		border: 2rpx solid #D1C8BC;
	}
</style>
